<ion-header-bar class="bar-top text-center">
    <div class="buttons">
        <nav-button class="back" ng-click="back('tabs.user')"></nav-button>
    </div>
    <h1 class="title">账户设置</h1>
</ion-header-bar>
<ion-view>
    <ion-content scroll="false" class="account-set">
        <div class="row user-info" ng-click="go('userInfo-doc');">
            <div class="col col-67">
                <div class="head">
                    <img ng-src="{{downloadImg(vm.user.headImgUrl)}}" />
                </div>
                <div class="info">
                    <div class="name" ng-bind="vm.user.name"></div>
                    <div class="tel" ng-bind="vm.user.code"></div>
                </div>
            </div>
            <div class="col col-33">
                <div class="go"><img src="img/go.png"></div>
            </div>
        </div>
        <div class="row status">
            <div class="col col-100">
                状态
            </div>
        </div>
        <div class="status-sel">
            <div class="row" ng-click="updateOnLine(1)">
                <div class="col col-100 item">
                    <div class="s-txt">在线</div>
                    <div class="go" ng-if="vm.user.isOnline==1"><img src="img/select.png"></div>
                </div>
            </div>
            <div class="row" ng-click="updateOnLine(-1)">
                <div class="col col-100 item">
                    <div class="s-txt" >隐身</div>
                    <div class="go" ng-if="vm.user.isOnline==-1"><img src="img/select.png"></div>
                </div>
            </div>
        </div>
        <div class="row itemdiv">
            <div class="col col-100">
                <div class="title">
                    每天咨询人数
                </div>
                <div class="num">
                    <input ng-blur="updateCallCount();" ng-model="vm.user.callCount"></input>
                </div>
            </div>
        </div>
        <div class="sbutton" ng-click="logout();">退出当前账号</div>
    </ion-content>
</ion-view>